package org.example.platform.design.mingling;


/**
 * 命令模式
 */
public class Test {
    public static void main(String[] args) {
//        Bbq bbq = new Bbq();
//        bbq.kaoRou();
//        bbq.kaoJiChi();
//        bbq.kaoRou();
//        bbq.kaoJiChi();
//        bbq.kaoJiDan();
//        bbq.kaoRou();
//        bbq.kaoJiChi();
//        bbq.kaoRou();
//        bbq.kaoJiChi();

        System.out.println("***********************************************");

        Bbq bbq1 = new Bbq();
        Command jitui = new KaoJiTui(bbq1);
        Command jichi = new KaoJiChi(bbq1);
        FuWuYuan fuWuYuan = new FuWuYuan();

        fuWuYuan.setOrder(jichi);
        fuWuYuan.notfiy();

        fuWuYuan.setOrder(jitui);
        fuWuYuan.notfiy();


    }
}
